package shizhan.proxy;

import java.lang.reflect.Proxy;

public class ValidationProxy {
    public static Object newInstance(Object target){
        return Proxy.newProxyInstance(target.getClass().getClassLoader(),
                target.getClass().getInterfaces(),
                new ValidationInvocationHandler(target));
    }
}
